<?php

namespace App\Models;

use App\Models\Traits\Search;
use App\Models\Traits\Timestamp;
use Illuminate\Database\Eloquent\SoftDeletes;

class Tag extends Model
{
    use Timestamp,SoftDeletes,Search;
    protected $guarded = [];
    protected $searchLike = ['name'];
    protected $searchEqual = ['is_show'];
    private $show = 1;
   
    public function getIsShowAttribute($value)
    {
        if ($value == $this -> show){
            return '是';
        }else{
            return '否';
        }
    }

}
